var app = getApp();
var request = app.request;

Page({

  /**
   * 页面的初始数据
   */
  data: {
    statusBar: app.globalData.statusBar,
    url: app.globalData.setting.url,
    userInfo: null,
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    var that = this;
    app.getUserInfo(function (userInfo) {
      that.setData({ userInfo: userInfo });
    }, true);
  },

  back() {
    wx.navigateBack();
  },
})